{% extends "base.html" %}
{% load url from future %}
{% load humanize %}
{% load i18n %}

{% block content %}

    <h1>{% trans 'Advanced search results' %}</h1>

    <table>
    {% for report in reports %}
        <tr>
            <td>
                <a href="{% url 'show_planet' report.planet.id %}">
                            {{ report.planet.galaxy }}:{{ report.planet.ss|escape }}:{{ report.planet.position }}
                </a> {{ report.planet.name }} 
            <td>
                <a href="{% url 'show_player' report.planet.player.id %}">
                    {{ report.planet.player }}
                </a>
            </td>
            </td>
            <td>{{ report.res }} {{ report.res_type }}</td>
        </tr>
    {% endfor %}
    </table>

{% endblock %}
